<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="doUpload.action" method="post" enctype="multipart/form-data">
    头像:<input type="file" name="head"/><br/>
    用户名:<input type="text" name="uname"/><br/>
    <input type="submit"/>
</form>
</body>
</html>